-- GENERATED SPELL FOR [Scorned Spirit of Fire] --


function spell0_21130(pUnit, Event) --@Call to the Spirits,Self--
pUnit:FullCastSpellOnTarget(36206,pUnit)
pUnit:RegisterEvent('Sorts_21130', 615, 1)
end

function Sorts_21130(pUnit, Event)
local choix_sorts_21130 = math.random(0, 0)
if choix_sorts_21130 == 0 then
pUnit:RegisterEvent('spell0_21130', 1, 1)
end
end

function mob21130_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21130', math.random(1500, 3000), 1)
end

function mob21130_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21130_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21130_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21130, 1, 'mob21130_Action')
RegisterUnitEvent(21130, 2, 'mob21130_Leave')
RegisterUnitEvent(21130, 3, 'mob21130_Kill')
RegisterUnitEvent(21130, 4, 'mob21130_Die')
